package com.hgkj.system.mapper;

import com.hgkj.system.domain.SysMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface SysMenuMapper {
    Set<String> selectPermsByRoleIds(@Param("roleIds") List<String> roleList);

    List<SysMenu> selectAllSysMenu();

    List<SysMenu> selectSysMenuByUserId(Long userId);

    SysMenu selectSysMenuByMenuName(String menuName);

    int insertMenu(SysMenu sysMenu);

    int editMenu(SysMenu sysMenu);

    int countChildByMenuId(Long menuId);

    int removeMenuByMenuId(Long menuId);

    List<SysMenu> selectAllTypeSysMenu();

}
